﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace TCKQKL.Service.DataContract
{
    [DataContract()]
    class OrderDetailDataModel
    {
        private OrdersBoscModel _rootOrder;
        private MatchedResultModel _matchedResult;
        private List<MatchedResultModel> _detailMatched;

        public OrderDetailDataModel()
        {
        }
        public OrderDetailDataModel(OrdersBoscModel rootOrder, MatchedResultModel execOrder, List<MatchedResultModel> detailOrder)
        {
            this._rootOrder = rootOrder;
            this._matchedResult = execOrder;
            this._detailMatched = detailOrder;
        }

        [System.Xml.Serialization.XmlElementAttribute(ElementName = "rootOrder", Order = 1, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "rootOrder", Order = 1)]
        public OrdersBoscModel rootOrder
        {
            get
            {
                return _rootOrder;
            }

            set
            {
                this._rootOrder = value;
            }

        }

        [System.Xml.Serialization.XmlElementAttribute(ElementName = "matchedResult", Order = 2, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "matchedResult", Order = 2)]
        public MatchedResultModel matchedResult
        {
            get
            {
                return _matchedResult;
            }

            set
            {
                this._matchedResult = value;
            }

        }

        [System.Xml.Serialization.XmlArray(ElementName = "detailMatched", Order = 3, IsNullable = false), System.Xml.Serialization.XmlArrayItem(typeof(MatchedResultModel))]
        [DataMember(EmitDefaultValue = false, IsRequired = false, Name = "detailMatched", Order = 3)]
        public List<MatchedResultModel> detailMatched
        {
            get
            {
                return _detailMatched;
            }

            set
            {
                this._detailMatched = value;
            }
        }
    }
}
